<h1>Sửa trạng thái</h1>

<?php echo $this->Form->create('BookingStatus', array('action' => 'add', $this->data['BookingStatus']['id'])); ?>
<?php echo $this->Form->input('BookingStatus.id', array('type' => 'hidden')); ?>
<table class="table2">
    <tr>
        <td>Trạng thái <span class="compulsory">*</span></td>
        <td>
            <p class="pb5"><?php echo $this->Form->input('BookingStatus.name', array('type' => 'text', 'class' => 'textfield', 'label' => false)); ?></p>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            <?php echo $this->Form->submit('Sửa', array('class' => 'button', 'div' => false)); ?>
            <?php echo $this->Form->submit('Hủy', array('class' => 'button', 'onclick' => "return back_to_index()", 'div' => false)); ?>
            <script type="text/javascript">
            function back_to_index()
            {
                window.location = '<?php echo $this->Html->url(array('controller' => 'booking_statuses', 'action' => 'index')) ?>';
                return false;
            }
            </script>
        </td>
    </tr>
</table>
<?php echo $this->Form->end(); ?>